
package com.programmingeyeclient.user.controller;


import com.baomidou.mybatisplus.extension.api.R;
import com.google.common.collect.Maps;
import com.programmingeyeclient.user.entity.Teacher;
import com.programmingeyeclient.user.service.TeacherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 讲师 控制器
 */
@RestController
@AllArgsConstructor
@RequestMapping("/user/teacher")
@CrossOrigin
@Api(value = "讲师", tags = "讲师接口")
public class TeacherController  {

	@Autowired
	private TeacherService teacherService;

	/**
	 * 前台查询讲师
	 */
	@GetMapping("/teacher")
	public List<Teacher> teacher(){
		List<Teacher> teacherlist=teacherService.selectTeacherList();
		System.out.println("讲师--------------------"+teacherService.selectTeacherList());
		return teacherlist;
	}



}
